#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'dong'


import requests

url = 'http://www.51guakao.cn/include/ChkLogin.aspx?name={0}&pass={1}&logauto={2}'.format(
    '15323385102', 'a123456', 0)


session = requests.session()

r = session.post(url=url, data={})

with open('b.html', 'wb') as fd:
    fd.write(r.content)


url = 'http://www.51guakao.cn/usermanage/user_addquanzhi.aspx?leibie=2'

p = session.get(url=url)

with open('a.html', 'wb') as fd:
    fd.write(p.content)